﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using TCM.Models;

namespace TCM.DbContextt
{
    public class BaseContext : DbContext
    {



        public DbSet<Case> Cases { get; set; }
        public DbSet<Category> Categories { get; set; }
        public DbSet<Razdel> Razdels { get; set; }
        public DbSet<TargetObject> TargetObjects { get; set; }
        public DbSet<TestPlan> TestPlans { get; set; }
        public DbSet<CasesToPlans> CasesToPlanses { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<WorkWithTestPlan> WorkWithTestPlans { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

            

        }

        public BaseContext()
        {
            this.Configuration.LazyLoadingEnabled = false;
        }


        

    }
}
 